//
//  LMFlatformSDK.h
//  LMFlatformSDK
//
//  Created by 元潮 谢 on 16/10/8.
//  Copyright © 2016年 元潮 谢. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface LMFlatformSDK : NSObject

@property (nonatomic, strong) NSString * companyID;

//TODO 需要删除这个
+ (LMFlatformSDK *)shared;

/**初始化
 */
-(id)initWithCompanyID:(NSString*)companyID;


//用户操作
-(id)bindManagerUserID:(NSString*)managerUserID lockMacAddress:(NSString*)lockMacAddress;
-(id)addShareUserID:(NSString*)shareUserID managerUserID:(NSString*)managerUserID lockMacAddress:(NSString*)lockMacAddress;
-(id)delShareUserID:(NSString*)shareUserID managerUserID:(NSString*)managerUserID lockMacAddress:(NSString*)lockMacAddress;
-(id)clearShareUserWithManagerUserID:(NSString*)managerUserID lockMacAddress:(NSString*)lockMacAddress;
-(id)requestShareUsersWithManagerUserID:(NSString*)managerUserID lockMacAddress:(NSString*)lockMacAddress;
-(id)setFreezeStatusShareUserID:(NSString*)shareUserID managerUserID:(NSString*)managerUserID lockMacAddress:(NSString*)lockMacAddress freezeStatus:(int)freezeStatus;

//蓝牙锁操作

-(id)requestLocksWithUserID:(NSString*)userID type:(int)type;
-(id)modifyLockName:(NSString*)lockName UserID:(NSString*)userID type:(int)type lockMacAddress:(NSString*)lockMacAddress;
-(id)requestLockKeyUserId:(NSString*)userID type:(int)type lockMacAddress:(NSString*)lockMacAddress;
-(id)replaceBlueToothManagerUserID:(NSString*)managerUserID lockMacAddress:(NSString*)lockMacAddress newLockMacAddress:(NSString*)newLockMacAddress;

//日志
-(id)uploadOpenLockLogUser:(NSString*)userID type:(int)type lockMacAddress:(NSString*)lockMacAddress;
-(id)requestLockLogsUser:(NSString*)userID type:(int)type lockMacAddress:(NSString*)lockMacAddress quantity:(int)quantity index:(int)index;

@end
